package com.angel.bo.auth.server.feign.fallback;

import com.angel.bo.auth.server.constant.AuthServiceRestCode;
import com.angel.bo.auth.server.feign.UserService;
import com.angel.bo.beans.admin.entity.User;
import com.angel.bo.common.msg.WebReturn;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author: Haibo.Mei [Haibo.Mei@ge.com]
 * @Description: fallBack
 * @Date: 13:16 2018/1/30
 */
@Component
@Slf4j
public class UserServiceFallBack implements UserService {
    /**
     * @param loginName
     * @Author: Haibo.Mei [Haibo.Mei@ge.com]
     * @Description:
     * @Date: 13:30 2018/1/30
     */
    @Override
    public WebReturn<User> login(String loginName) {
        log.error("login fallback");
        return new WebReturn<>(AuthServiceRestCode.USER_LOGIN_FALLBACK);
    }
}
